/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package idea.model.qnrlibrary;


import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.xml.bind.annotation.XmlRootElement;


/**
 *
 * @author rejun001
 */
@Entity
@Table( name = "question_title_view" )
@XmlRootElement
@NamedQueries( 
{
    @NamedQuery( name = "QuestionTitleView.findAll" , query = "SELECT q FROM QuestionTitleView q" ) ,
    @NamedQuery( name = "QuestionTitleView.findByCategory" , query = "SELECT q FROM QuestionTitleView q WHERE q.category = :category" ) ,
    @NamedQuery( name = "QuestionTitleView.findByCategoryType" , query = "SELECT q FROM QuestionTitleView q WHERE q.categoryType = :categoryType" ) ,
    @NamedQuery( name = "QuestionTitleView.findByContentType" , query = "SELECT q FROM QuestionTitleView q WHERE q.contentType = :contentType" ) ,
    @NamedQuery( name = "QuestionTitleView.findByCategoryContentId" , query = "SELECT q FROM QuestionTitleView q WHERE q.categoryContentId = :categoryContentId" ) ,
    @NamedQuery( name = "QuestionTitleView.findByQuestId" , query = "SELECT q FROM QuestionTitleView q WHERE q.questId = :questId" ) ,
    @NamedQuery( name = "QuestionTitleView.findByVersion" , query = "SELECT q FROM QuestionTitleView q WHERE q.version = :version" ) ,
    @NamedQuery( name = "QuestionTitleView.findByHeaderId" , query = "SELECT q FROM QuestionTitleView q WHERE q.headerId = :headerId" ) ,
    @NamedQuery( name = "QuestionTitleView.findByStatus" , query = "SELECT q FROM QuestionTitleView q WHERE q.status = :status" ) ,
    @NamedQuery( name = "QuestionTitleView.findByQuestLayout" , query = "SELECT q FROM QuestionTitleView q WHERE q.questLayout = :questLayout" ) ,
    @NamedQuery( name = "QuestionTitleView.findByTitle" , query = "SELECT q FROM QuestionTitleView q WHERE q.title = :title" ) ,
    @NamedQuery( name = "QuestionTitleView.findByQuestWording" , query = "SELECT q FROM QuestionTitleView q WHERE q.questWording = :questWording" ) ,
    @NamedQuery( name = "QuestionTitleView.findByLinesDollar" , query = "SELECT q FROM QuestionTitleView q WHERE q.linesDollar = :linesDollar" ) ,
    @NamedQuery( name = "QuestionTitleView.findByLinesPercent" , query = "SELECT q FROM QuestionTitleView q WHERE q.linesPercent = :linesPercent" ) ,
    @NamedQuery( name = "QuestionTitleView.findByCreatedBy" , query = "SELECT q FROM QuestionTitleView q WHERE q.createdBy = :createdBy" ) ,
    @NamedQuery( name = "QuestionTitleView.findByDateCreated" , query = "SELECT q FROM QuestionTitleView q WHERE q.dateCreated = :dateCreated" ) ,
    @NamedQuery( name = "QuestionTitleView.findByModifiedBy" , query = "SELECT q FROM QuestionTitleView q WHERE q.modifiedBy = :modifiedBy" ) ,
    @NamedQuery( name = "QuestionTitleView.findByDateModified" , query = "SELECT q FROM QuestionTitleView q WHERE q.dateModified = :dateModified" ) ,
    @NamedQuery( name = "QuestionTitleView.findByElectDescr" , query = "SELECT q FROM QuestionTitleView q WHERE q.electDescr = :electDescr" ) ,
    @NamedQuery( name = "QuestionTitleView.findByRefPeriod" , query = "SELECT q FROM QuestionTitleView q WHERE q.refPeriod = :refPeriod" )
} )
public class QuestionTitleView implements Serializable
{
    private static final long serialVersionUID = 1L;
    @Column( name = "category" )
    private String category;
    @Column( name = "category_type" )
    private String categoryType;
    @Column( name = "content_type" )
    private String contentType;
    @Column( name = "category_content_id" )
    private String categoryContentId;
    @Id
    @Basic( optional = false )
    @Column( name = "quest_id" )
    private String questId;
    @Column( name = "version" )
    private BigInteger version;
    @Column( name = "header_id" )
    private String headerId;
    @Column( name = "status" )
    private String status;
    @Column( name = "quest_layout" )
    private String questLayout;
    @Column( name = "title" )
    private String title;
    @Column( name = "quest_wording" )
    private String questWording;
    @Column( name = "lines_dollar" )
    private Character linesDollar;
    @Column( name = "lines_percent" )
    private Character linesPercent;
    @Column( name = "created_by" )
    private String createdBy;
    @Column( name = "date_created" )
    @Temporal( TemporalType.TIMESTAMP )
    private Date dateCreated;
    @Column( name = "modified_by" )
    private String modifiedBy;
    @Column( name = "date_modified" )
    @Temporal( TemporalType.TIMESTAMP )
    private Date dateModified;
    @Column( name = "elect_descr" )
    private String electDescr;
    @Column( name = "ref_period" )
    private String refPeriod;


    public QuestionTitleView()
    {
    }


    public String getCategory()
    {
        return category;
    }


    public void setCategory( String category )
    {
        this.category = category;
    }


    public String getCategoryType()
    {
        return categoryType;
    }


    public void setCategoryType( String categoryType )
    {
        this.categoryType = categoryType;
    }


    public String getContentType()
    {
        return contentType;
    }


    public void setContentType( String contentType )
    {
        this.contentType = contentType;
    }


    public String getCategoryContentId()
    {
        return categoryContentId;
    }


    public void setCategoryContentId( String categoryContentId )
    {
        this.categoryContentId = categoryContentId;
    }


    public String getQuestId()
    {
        return questId;
    }


    public void setQuestId( String questId )
    {
        this.questId = questId;
    }


    public BigInteger getVersion()
    {
        return version;
    }


    public void setVersion( BigInteger version )
    {
        this.version = version;
    }


    public String getHeaderId()
    {
        return headerId;
    }


    public void setHeaderId( String headerId )
    {
        this.headerId = headerId;
    }


    public String getStatus()
    {
        return status;
    }


    public void setStatus( String status )
    {
        this.status = status;
    }


    public String getQuestLayout()
    {
        return questLayout;
    }


    public void setQuestLayout( String questLayout )
    {
        this.questLayout = questLayout;
    }


    public String getTitle()
    {
        return title;
    }


    public void setTitle( String title )
    {
        this.title = title;
    }


    public String getQuestWording()
    {
        return questWording;
    }


    public void setQuestWording( String questWording )
    {
        this.questWording = questWording;
    }


    public Character getLinesDollar()
    {
        return linesDollar;
    }


    public void setLinesDollar( Character linesDollar )
    {
        this.linesDollar = linesDollar;
    }


    public Character getLinesPercent()
    {
        return linesPercent;
    }


    public void setLinesPercent( Character linesPercent )
    {
        this.linesPercent = linesPercent;
    }


    public String getCreatedBy()
    {
        return createdBy;
    }


    public void setCreatedBy( String createdBy )
    {
        this.createdBy = createdBy;
    }


    public Date getDateCreated()
    {
        return dateCreated;
    }


    public void setDateCreated( Date dateCreated )
    {
        this.dateCreated = dateCreated;
    }


    public String getModifiedBy()
    {
        return modifiedBy;
    }


    public void setModifiedBy( String modifiedBy )
    {
        this.modifiedBy = modifiedBy;
    }


    public Date getDateModified()
    {
        return dateModified;
    }


    public void setDateModified( Date dateModified )
    {
        this.dateModified = dateModified;
    }


    public String getElectDescr()
    {
        return electDescr;
    }


    public void setElectDescr( String electDescr )
    {
        this.electDescr = electDescr;
    }


    public String getRefPeriod()
    {
        return refPeriod;
    }


    public void setRefPeriod( String refPeriod )
    {
        this.refPeriod = refPeriod;
    }
    
}
